New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

minimist-mini

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minimist-mini

Minimist-mini is minimist simplified. Auto-generation of help using README.md (converted to text) - and easy parsing of option given to the CLI program.

  • 2.0.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
362
decreased by-15.42%
Maintainers
1
Weekly downloads
 
Created
Source

minimist-mini

A wrapper around minimist that automagically generates documentation from your module's README.md or readme.md file. It reads the .md file and parses it for display in your console application.

Install:

npm install --save minimist-mini

Usage:

// Opts are the same as in minimist

// Opts are not required. You can do like this:
// var m = require('minimist-mini')();

// If you use opts then they will 
// be cast as your opts are declared

// E.g.
const opts = [];
opts.boolean = ['help']; // true or false
opts.string = ['test']; // string

var m = require('minimist-mini')(opts);

// Check if test is set and log it.
var test = m.get('test');
if (test){
    console.log(test);
}

// Check if help is set
// and Output README.md as txt if set
//
// You can also set a file from current path, e.g.
// 'docs/cli.md

if (m.get('help')) {
    m.helpMessage();
}

License:

MIT © Dennis Iversen

Keywords

FAQs

Package last updated on 30 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc